/**
 * 
 */
package com.hjx.service;

import java.io.Serializable;
import java.util.List;

import com.hjx.model.Page;


/**
 * @author huangjixin
 *
 */
public interface IGenericService <T extends Serializable, PK extends Serializable>{

    int deleteByPrimaryKey(PK id);

    int insert(T record);

    int insertSelective(T record);

    List<T> selectAll();

    T selectByPrimaryKey(PK id);
    
    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKey(T record);
    
    Page selectByPage(Page page);
}
